package biscuit;

import java.util.ArrayList;
import java.util.Collections;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

import biscuit.data.Room;

@WebListener
public class BiscuitServletContextListener implements ServletContextListener {

	@Override
	public void contextInitialized(ServletContextEvent event) {
		event.getServletContext().setAttribute("roomList",
				Collections.synchronizedList(new ArrayList<Room>()));
	}

	@Override
	public void contextDestroyed(ServletContextEvent event) {

	}

}
